#include "ood.h"
#include <assert.h>


#include "base.h"
#include "sub1.h"
void base_test(){
    base_t * base = base_create(100);
    assert(base);

    assert(base->cb_get_value_(base) == 100);

    base->cb_set_value_(base, 200);
    assert(base->cb_get_value_(base) == 200);

    base->cb_free_(base);
}

void sub1_test(){
    base_t * base = (base_t*)sub1_create(200);
    assert(base);

    assert(base->cb_get_value_(base) == 200);

    base->cb_set_value_(base, 300);
    assert(base->cb_get_value_(base) == 300);

    base->cb_free_(base);
}



void ood_test(){
    base_test();
    sub1_test();
}
